package cn.kpt.biz.service;


import cn.kpt.beans.pojo.ItripHotelRoom;
import cn.kpt.beans.vo.ItripImageVO;
import cn.kpt.beans.vo.hotelroom.ItripHotelRoomVO;
import cn.kpt.beans.vo.hotelroom.SearchHotelRoomVO;

import java.util.Date;
import java.util.List;

public interface HotelRoomService {
    /**
     * 查询酒店房间列表
     *
     * @param vo
     * @return
     * @throws Exception
     */
    List<List<ItripHotelRoomVO>> queryHotelRoomByHotel(SearchHotelRoomVO vo) throws Exception;

    /**
     * 查询酒店房间图片
     *
     * @param roomId
     * @return
     * @throws Exception
     */
    List<ItripImageVO> getImg(Long roomId) throws Exception;

    /**
     * 获取房间库存
     *
     * @param roomId
     * @param list
     * @return
     * @throws Exception
     */
    int getRoomStock(Long roomId, List<Date> list) throws Exception;

    /**
     * 检查库存
     *
     * @param roomId
     * @param count
     * @param betweenDates
     * @return
     */
    boolean checkRoomStock(Long roomId, Integer count, List<Date> betweenDates) throws Exception;

    /**
     * 根据ID 查询房间
     *
     * @param roomId
     * @return
     */
    ItripHotelRoom getRoomById(Long roomId) throws Exception;
}

